package com.kgc.scd.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * Created On : 2022/6/11.
 * <p>
 * Author     : hi
 * <p>
 * Description: 搜索历史
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "搜索历史")
public class SearchHistory implements Serializable {

    //编号
    @ApiModelProperty(value = "搜索历史编号")
    private Integer historyId;

    //用户编号
    @ApiModelProperty(value = "用户编号")
    private String historyKey;

    //搜索内容
    @ApiModelProperty(value = "搜索内容")
    private String historyValue;

    //搜索时间
    @ApiModelProperty(value = "搜索时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date historyDate;
}
